package com.jyw.business.obstacles.domain.vo.web;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyw.common.annotation.Conversion;
import com.jyw.common.constant.SysDictTypeConstant;
import com.jyw.common.enums.ConversionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.util.Date;

@Data
@ApiModel("首页-告警消息 返回实体")
@FieldNameConstants
public class HomeOrderWarningVO {

    @ApiModelProperty("顶级故障类型")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.OBS_FAULT_TYPE)
    private String parentFaultType;

    @ApiModelProperty("顶级故障类型标签")
    private String parentFaultTypeToName;

    @ApiModelProperty("故障类型")
    @Conversion(value = ConversionType.DICT,dictType = SysDictTypeConstant.OBS_FAULT_TYPE)
    private String faultType;

    @ApiModelProperty("故障类型标签")
    private String faultTypeToName;

    @ApiModelProperty("数量")
    private Integer count;

    @ApiModelProperty("告警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date warningTime;
}
